package com.atguigu.c_changestream;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        //设置 写数据的编码格式
        OutputStreamWriter osw = new OutputStreamWriter(
                new FileOutputStream("T_Day23\\test\\aaa.txt",true),"GBK");

        osw.write("你看我乱不乱?");
        osw.write("\r\n");
        osw.flush();


        osw.close();
    }
}
